package com.design.visit;

public class ChineseTeacher extends Teacher{


    public ChineseTeacher(Student student) {
        super(student);
        evaluate();
    }

    @Override
    void evaluate() {
        Integer grade = student.getChinese();
        String evaluate = grade >= 60 ? grade >= 90 ? "优秀" : "一般" : "不及格";
        System.out.println("语文："+evaluate);

    }
}
